﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(LayersLoader))]
public class LayersLoaderEditor : UnityEditor.Editor
{
    public override void OnInspectorGUI()
    {
        //base.OnInspectorGUI();
        DrawDefaultInspector();

        LayersLoader layersLoader = (LayersLoader) target;

        if (GUILayout.Button("生成图层"))
        {
            layersLoader.BuildLayers();
        }
    }
}